<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/image',
    'namespace' => 'Frieza\\Modules\\Image\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('/add', 'UploadController@add');
    $router->post('/upload', 'UploadController@upload');

    $router->get('/addVideo', 'UploadController@addVideo');
    $router->post('/uploadVideo', 'UploadController@uploadVideo');
    $router->get('/getVideo/{videoId}', 'UploadController@getVideo');
});